package com.zmx.patientend.view.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

import com.zmx.patientend.BaseActivity;
import com.zmx.patientend.R;
import com.zmx.patientend.fragment.HomeFragment;
import com.zmx.patientend.fragment.MineFragment;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class PrescribingActivity extends BaseActivity {

    @BindView(R.id.store_message)
    TextView storeMessage;
    @BindView(R.id.button1)
    Button button1;
    @BindView(R.id.button2)
    Button button2;

    @Override
    protected int getLayoutId() {
        return R.layout.activity_prescribing;
    }

    @Override
    protected void initViews() {

        ButterKnife.bind(this);
        setToolbar(R.id.tool_bar);
    }

    @OnClick({R.id.store_message, R.id.button1, R.id.button2})
    public void onViewClicked(View view) {
        switch (view.getId()) {

            case R.id.store_message:

                Intent intent = new Intent();
                intent.setClass(mActivity, MyPrescriptionActivity.class);
                startActivity(intent);

                break;
            case R.id.button1:
                Intent intent2 = new Intent();
                intent2.setClass(mActivity, PrescribingPhysicianActivity.class);
                startActivity(intent2);
                break;
            case R.id.button2:

                Intent intent1 = new Intent();
                intent1.setClass(mActivity, AllDoctorActivity.class);
                startActivity(intent1);

                break;
        }
    }
}
